<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateQaecmsNavsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qaecms_navs', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('pid')->comment('导航父id');
            $table->string('title')->comment('导航标题');
            $table->string('href')->comment('导航地址');
            $table->string('status')->comment('导航状态 0不显示 1显示');
            $table->integer('sort')->comment('导航排序 数字越大越靠前');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qaecms_navs');
    }
}
